package Service.Impl.SignImpl;

import Dao.Sign.DeviceArrangeHgDao;
import Model.SignModel.DeviceArrangeHg;
import Service.DeviceArrangeHgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DeviceArrangeHgService")
public class DeviceArrangeHgServiceImpl implements DeviceArrangeHgService {

    @Autowired
    private DeviceArrangeHgDao deviceArrangeHgDao;

    @Override
    public List<DeviceArrangeHg> getDeviceArrangeHgList(DeviceArrangeHg deviceArrangeHg){
        List<DeviceArrangeHg> list  = deviceArrangeHgDao.getDeviceArrangeHgList(deviceArrangeHg);
        System.out.println("[Service层：获取护工的发放设备信息！]");
        return list;
    }

    @Override
    public void deleteDeviceArrangeHg(int id){
        deviceArrangeHgDao.deleteDeviceArrangeHg(id);
        System.out.println("[Service层：删除护工的发放设备信息！]");
    }

    @Override
    public void updateDeviceArrangeHg(DeviceArrangeHg deviceArrangeHg){
        deviceArrangeHgDao.updateDeviceArrangeHg(deviceArrangeHg);
        System.out.println("[Service层：更新护工的发放设备信息！]");
    }

    public void addDeviceArrangeHg(DeviceArrangeHg deviceArrangeHg){
        deviceArrangeHgDao.addDeviceArrangeHg(deviceArrangeHg);
        System.out.println("[Service层：添加护工的发放设备信息！]");
    }
}
